import request from '@/utils/request';

/**
 * 获取字典所有类型列表
 * @param params
 * @returns {*}
 */
export function getDictOptionList () {
  return request({
    url: '/system/dict/type/optionselect',
    method: 'get',
    loading: false
  });
};

/**
 * 获取客户信息列表
 * @param params
 * @returns {*}
 */
export function getCustomerOptionList (params) {
  return request({
    url: '/archives/customer/list',
    method: 'get',
    loading: false,
    params
  });
};

/**
 * 获取运输产品列表
 * @param params
 * @returns {*}
 */
export function getProductOptionList (params) {
  return request({
    url: '/archives/products/list',
    method: 'get',
    loading: false,
    params
  });
};

/**
 * 获取发件人列表
 * @param params
 * @returns {*}
 */
export function getShipperOptionList (params) {
  return request({
    url: '/archives/shipper/list',
    method: 'get',
    loading: false,
    params
  });
};

/**
 * 获取收件人列表
 * @param params
 * @returns {*}
 */
export function getConsigneeOptionList (params) {
  return request({
    url: '/archives/consignee/list',
    method: 'get',
    loading: false,
    params
  });
};

/**
 * 获取分区国家列表
 * @param params
 * @returns {*}
 */
export function getCountryOptionList (params) {
  return request({
    url: '/archives/country/list',
    method: 'get',
    loading: false,
    params
  });
};